package com.sirdc.modules.sys.entity;

import com.sirdc.modules.core.entity.StringEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * User: ling
 * Date: 2019/11/15
 * Time: 9:40
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Entity
@Table(name = "t_sys_file")
@DynamicUpdate//动态更新
@DynamicInsert//动态插入
public class SysFile extends StringEntity {
    private static final long serialVersionUID = 1L;
    private String filename;
    private String fileType;
    private String url;
    private String oldName; // 原文件名

    public String getOldName() {
        return oldName;
    }

    public void setOldName(String oldName) {
        this.oldName = oldName;
    }

    public SysFile() {
    }

    public String getFilename() {
        return this.filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getFileType() {
        return this.fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
